package com.haonan.springboot_exercise.dao;

import com.haonan.springboot_exercise.bean.ServerLog;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author haonan
 * @date 2021/5/16 16:54
 **/
@Repository
public interface ServerLogDao {
    /**
     * 记录管理员对系统的操作日志
     * @param user_name
     * @param info
     */
    public void recordServerLog(@Param("user_name") String user_name, @Param("info") String info);

    public List<ServerLog> getServerLogList(@Param("pageStart") int pageStart, @Param("pageSize") int pageSize);

    public List<ServerLog> getAllServerLogList();
}
